package red.lixiang.dao;

import red.lixiang.model.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CartDAO {

    int addToCartByOpenId(@Param("barCode") String barCode,
                  @Param("openId") String openId);

    List<Cart> getCartInfoByOpenId(String openId);

    int deleteCartByOpenId(@Param("id") String id,
                                  @Param("openId") String openId);


}
